﻿using System;
using System.Collections.Generic;
using System.Text;
using FeatureCenter.Module.Navigation;
using DevExpress.ExpressApp.Demos;
using DevExpress.Persistent.Base;
using DevExpress.Xpo;
using System.Drawing;
using DevExpress.Xpo.Metadata;

namespace FeatureCenter.Module.InfoPanels {
    [NavigationItem(Captions.FrameTemplatesGroup), System.ComponentModel.DisplayName(Captions.FrameTemplates_InfoPanels)]
    [Hint(Hints.FrameTemplates_InfoPanels, DevExpress.ExpressApp.ViewType.Any)]
    [ImageName("FrameTemplates.Demo_InfoPanels")]
    public class InfoPanelsObject : NamedBaseObject {
        private string dataProperty;
        private Image photo;
        public InfoPanelsObject(Session session)
            : base(session) {
        }
        public string DataProperty {
            get { return dataProperty; }
            set { SetPropertyValue("DataProperty", ref dataProperty, value); }
        }
        [Size(SizeAttribute.Unlimited), ValueConverter(typeof(ImageValueConverter))]
        public Image Photo {
            get {
                return photo;
            }
            set {
                SetPropertyValue("Photo", ref photo, value);
            }
        }
    }
}
